package cn.tedu.store.user.webapi.mapper;

import cn.tedu.store.commons.pojo.user.entity.Address;
import cn.tedu.store.commons.pojo.user.vo.AddressListItemVO;
import cn.tedu.store.commons.pojo.user.vo.AddressStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddressMapper {

    int insert(Address address);

    int delete(Long[] ids);

    int updateById(Address address);

    int countById(Long id);

    AddressStandardVO getByIsDefault();

    AddressStandardVO getStandardById(Long id);

    List<AddressListItemVO> list();
}
